﻿<%@ page language="java" import="java.util.*"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
	String token = request.getParameter("token");
%>
<script type="text/javascript" src="js/geological/jquery.min.js"></script>
<script type="text/javascript">
$.ajax({
	  url: "<%=basePath %>ssologin?token=<%=token %>",
	  type : 'get',
	  async : false,
	  //data: JSON.stringify( paramMap ),
	  contentType: "application/json; charset=utf-8",
	  //dataType: "json",
	  success: function(json) {
		  if( json.result == "success" ){
			  window.location.href = "<%=basePath %>pages/geological/index.html";
		  }else{
			  alert(json.message)
		  }
	  }
});
</script>